package JAVA;

import java.util.Scanner;

public class work382 {
    public static void main(String[] args) {
        int i,j;
        Scanner input=new Scanner(System.in);
        System.out.println("请输入密码");
        boolean a=false;
        for (i=1;i<=3;i++){
            String password=input.nextLine();
            if (password.equals("111111")){
                while(true){
                    System.out.println("请输入取款金额");
                    int money= input.nextInt();
                    if (money%100!=0&&money>=100&&money<=1000){
                        System.out.println("您取的金额："+money);
                        System.out.println("取卡");
                    }else {
                        System.out.println("您输入的金额不正确，请重新输入");
                        continue;
                    }
                    a=true;
                    break;
                }
            } else{
                System.out.println("密码错误");
            }
        }
        if (false){
            System.out.println("三次机会用完了，密码错误");
        }
    }
}
